home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_6.lha / 8_6 / 8_6_sputc.c < prev    next >
Text File  |  1993-08-08  |  320b  |  14 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / put a character into the buffer
  6. include <limits.h>
  7. / inline
  8. nt streambuf::sputc(int c)
  9.  
  10.    return (eptr <= pptr) ?
  11.    overflow(c & UCHAR_MAX) :
  12.    (*pptr++ = c & UCHAR_MAX);
  13.  
  14.